package com.nokia.position;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import org.apache.hadoop.io.Writable;

public class PositionServiceUsageUSA3Writable implements Writable {
	private int totalCount;
	

	public PositionServiceUsageUSA3Writable(int count) {
		this.totalCount = count;
		
	}

	public PositionServiceUsageUSA3Writable() {
		this(0);
	}

	public int getTotalCount() {
		return totalCount;
	}


	@Override
	public void readFields(DataInput arg0) throws IOException {
		totalCount = arg0.readInt();


	}

	@Override
	public void write(DataOutput arg0) throws IOException {
		arg0.writeInt(totalCount);
		
	}

	public String toString() {
		return Integer.toString(totalCount);
	}
}
